<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="../../tpl/head.jsp"%>
<link rel="stylesheet" href="statics/css/secondarytitle.css">
<style>
    .layui-form-item .layui-input-inline{
        width: 60%;
    }
    #companyForm .layui-form-item .layui-inline {
        width: 49%;
    }
    table#chapter tr td {
        text-align: center;
    }
</style>
<div class="layui-fluid">
    <div class="layui-card">
        <div class="header">
            <%--<i class="layui-icon layui-icon-menu-fill" style="font-size: 30px;color: #000;"> </i>--%>
            <img class="img " src="statics/images/titheader.svg">
            <span>添加，修改公司所有信息</span>
        </div>

        <div class="layui-card-body">
            <div class="layui-row">
                <div class="layui-col-md12">
                    <div class="layui-tab layui-tab-card">
                        <ul class="layui-tab-title">
                            <li class="layui-this">主信息</li>
                            <li class="">开户银行</li>
                            <li class="">其它章</li>
                            <li class="">操作日志</li>
                        </ul>
                        <div class="layui-tab-content">
                            <div class="layui-tab-item layui-show">
                                <form class="layui-form" id="companyForm" lay-filter="component-form" enctype="multipart/form-data">
                                    <div class="layui-form-item">
                                        <div class="layui-inline">
                                            <label class="layui-form-label">公司名称</label>
                                            <div class="layui-input-inline">
                                                <input type="text" name="name" id="name" lay-verify="required" autocomplete="off" class="layui-input" readonly>
                                            </div>
                                        </div>
                                        <div class="layui-inline">
                                            <label class="layui-form-label">英文名称</label>
                                            <div class="layui-input-inline">
                                                <input type="text" name="englishname" id="englishname" lay-verify="required" autocomplete="off"  class="layui-input">
                                            </div>
                                        </div>
                                    </div>
                                    <div class="layui-form-item">
                                        <div class="layui-inline">
                                            <label class="layui-form-label">简称</label>
                                            <div class="layui-input-inline">
                                                <input type="text" name="abbreviation" lay-verify="required" autocomplete="off" class="layui-input">
                                            </div>
                                        </div>
                                        <div class="layui-inline">
                                            <label class="layui-form-label">地址</label>
                                            <div class="layui-input-inline">
                                                <input type="text" name="address" lay-verify="required" autocomplete="off"  class="layui-input">
                                            </div>
                                        </div>
                                    </div>
                                    <div class="layui-form-item">
                                        <div class="layui-inline">
                                            <label class="layui-form-label">英文地址</label>
                                            <div class="layui-input-inline">
                                                <input type="text" name="englishaddress" lay-verify="required" autocomplete="off" class="layui-input">
                                            </div>
                                        </div>
                                        <div class="layui-inline">
                                            <label class="layui-form-label">邮编</label>
                                            <div class="layui-input-inline">
                                                <input type="text" name="postalcode" lay-verify="required" autocomplete="off"  class="layui-input">
                                            </div>
                                        </div>
                                    </div>
                                    <div class="layui-form-item">
                                        <div class="layui-inline">
                                            <label class="layui-form-label">海关号</label>
                                            <div class="layui-input-inline">
                                                <input type="text" name="customsno" lay-verify="required" autocomplete="off" class="layui-input">
                                            </div>
                                        </div>
                                        <div class="layui-inline">
                                            <label class="layui-form-label">税务登记号</label>
                                            <div class="layui-input-inline">
                                                <input type="text" name="taxregistrationno" lay-verify="required" autocomplete="off"  class="layui-input">
                                            </div>
                                        </div>
                                    </div>
                                    <div class="layui-form-item">
                                        <div class="layui-inline">
                                            <label class="layui-form-label">FormA号</label>
                                            <div class="layui-input-inline">
                                                <input type="text" name="formano" lay-verify="required" autocomplete="off" class="layui-input">
                                            </div>
                                        </div>
                                        <div class="layui-inline">
                                            <label class="layui-form-label">产地证注册号</label>
                                            <div class="layui-input-inline">
                                                <input type="text" name="corno" lay-verify="required" autocomplete="off"  class="layui-input">
                                            </div>
                                        </div>
                                    </div>
                                    <div class="layui-form-item">
                                        <div class="layui-inline">
                                            <label class="layui-form-label">法人</label>
                                            <div class="layui-input-inline">
                                                <input type="text" name="legalperson" lay-verify="required" autocomplete="off" class="layui-input">
                                            </div>
                                        </div>
                                        <div class="layui-inline">
                                            <label class="layui-form-label">邮件地址</label>
                                            <div class="layui-input-inline">
                                                <input type="text" name="mailiaddress" lay-verify="required" autocomplete="off"  class="layui-input">
                                            </div>
                                        </div>
                                    </div>
                                    <div class="layui-form-item">
                                        <div class="layui-inline">
                                            <label class="layui-form-label">电话</label>
                                            <div class="layui-input-inline">
                                                <input type="text" name="tel"  lay-verify="required" autocomplete="off" class="layui-input">
                                            </div>
                                        </div>
                                        <div class="layui-inline">
                                            <label class="layui-form-label">传真</label>
                                            <div class="layui-input-inline">
                                                <input type="text" name="fax" lay-verify="required" autocomplete="off"  class="layui-input">
                                            </div>
                                        </div>
                                    </div>
                                    <div class="layui-form-item">
                                        <div class="layui-inline">
                                            <label class="layui-form-label">主页</label>
                                            <div class="layui-input-inline">
                                                <input type="text" name="homepage"  lay-verify="required" autocomplete="off" class="layui-input">
                                            </div>
                                        </div>
                                        <div class="layui-inline">
                                            <label class="layui-form-label">报检登记号</label>
                                            <div class="layui-input-inline">
                                                <input type="text" name="newspapersw" lay-verify="required" autocomplete="off"  class="layui-input">
                                            </div>
                                        </div>
                                    </div>
                                    <div class="layui-form-item">
                                        <div class="layui-inline">
                                            <label class="layui-form-label">公司性质</label>
                                            <div class="layui-input-inline">
                                                <input type="text" name="natureofcompany"  lay-verify="required" autocomplete="off" class="layui-input">
                                            </div>
                                        </div>
                                        <div class="layui-inline">
                                            <label class="layui-form-label">经营范围</label>
                                            <div class="layui-input-inline">
                                                <input type="text" name="businessscope" lay-verify="required" autocomplete="off"  class="layui-input">
                                            </div>
                                        </div>
                                    </div>
                                   <%-- <div class="layui-form-item">--%>
                                       <%-- <div class="layui-inline">
                                            <label class="layui-form-label">中文LOGO</label>
                                            <div class="layui-input-inline">
                                                <div class="layui-upload-drag" id="chineselogo">
                                                    <i class="layui-icon"></i>
                                                    <p>点击上传，或将文件拖拽到此处</p>
                                                    <div class="layui-hide" id="chineselogoView">
                                                        <hr>
                                                        <img name="chinalogo" src="" id="chinalogo" alt="上传成功后渲染" style="max-width: 180px" >
                                                        <input type="hidden"name="chinalogo">
                                                    </div>
                                                </div>
                                            </div>
                                        </div>--%>

                                       <%-- <div class="layui-inline">
                                            <label class="layui-form-label">英文LOGO</label>
                                            <div class="layui-input-inline">
                                                <div class="layui-upload-drag" id="englishlogo">
                                                    <i class="layui-icon"></i>
                                                    <p>点击上传，或将文件拖拽到此处</p>
                                                    <div class="layui-hide" id="englishlogoView">
                                                        <hr>
                                                        <img name="enginshlogo" src="" id="enginshlogo" alt="上传成功后渲染" style="max-width: 180px">
                                                        <input type="hidden"name="enginshlogo">
                                                    </div>
                                                </div>
                                            </div>
                                        </div>--%>
                                   <%-- </div>--%>
                                    <div class="layui-form-item">
                                        <div class="layui-inline">
                                            <label class="layui-form-label">是否代理</label>
                                            <div class="layui-input-inline">
                                                <input type="checkbox" name="isproxy" id="isproxy" title="代理">
                                            </div>
                                        </div>
                                        <div class="layui-inline">
                                            <label class="layui-form-label">保险单号</label>
                                            <div class="layui-input-inline">
                                                <input type="text" name="policyno" autocomplete="off"  class="layui-input">
                                            </div>
                                        </div>
                                    </div>
                                    <div class="layui-form-item">
                                        <div class="layui-inline">
                                            <label class="layui-form-label">中文签字章</label>
                                            <div class="layui-input-inline">
                                                <div class="layui-upload-drag uploadimg" lay-data="{id: 'englishsign'}">
                                                    <img name="" id="chinalogo" src="statics/images/layui-logo.jpg" alt="上传成功后渲染" style="max-width: 180px" >
                                                    <input name="chinalogo" type="hidden">
                                                    <div class="padding text-center">
                                                        <input type="button" class="layui-btn uploadimg" lay-data="{id: 'chinalogo'}" id="chinalogoadd" style="margin-right: 10px!important;" value="添加">
                                                        <input type="button" class="layui-btn layui-btn-danger" id="chinalogodel"  value="清空">
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="layui-inline">
                                            <label class="layui-form-label">英文签字章</label>
                                            <div class="layui-input-inline">
                                                <div class="layui-upload-drag uploadimg" lay-data="{id: 'englishsign'}">
                                                    <img name="" id="enginshlogo" src="statics/images/layui-logo.jpg" alt="上传成功后渲染" style="max-width: 180px" >
                                                    <input name="enginshlogo" type="hidden">
                                                    <div class="padding text-center">
                                                        <input type="button" class="layui-btn uploadimg" lay-data="{id: 'enginshlogo'}" id="enginshlogoadd" style="margin-right: 10px!important;" value="添加">
                                                        <input type="button" class="layui-btn layui-btn-danger" id="enginshlogodel"  value="清空">
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </form>
                                <div class="padding text-center">
                                    <button class="layui-btn" id="componentsubmit" lay-submit  lay-filter="component-form">提交</button>
                                </div>
                            </div>
                            <div  class="layui-tab-item">
                                <div class="layui-btn-group bankTablebutton">
                                    <button class="layui-btn" data-type="getCheckData" style="margin-right: 10px!important;">新增</button>
                                    <button class="layui-btn layui-btn-danger" data-type="getCheckLength">删除</button>
                                </div>
                                <table class="layui-table" id="banktables" lay-filter="banktable"></table>
                            </div>
                            <div class="layui-tab-item">
                                <table class="layui-table" id="chapter" lay-filter="chaptertable">
                                    <tr>
                                        <td >
                                           公司章

                                        </td>
                                        <%--layer-src="大图地址" src="缩略图" alt="图片名"--%>
                                        <td class="chapterimg">
                                            <img src="statics/images/layui-logo.jpg"  id="companychapter"/>
                                        </td>
                                        <td><button class="layui-btn layui-btn-normal saveimg" data-id = "companychapter">另存章照片</button></td>
                                        <td><button class="layui-btn layui-btn-normal chapterimg" lay-data="{id: 'companychapter'}">上传章图片</button></td>
                                        <td><button class="layui-btn layui-btn-normal deleimg" data-id = "companychapter">删除章图片</button></td>
                                    </tr>
                                    <tr>
                                        <td >默认公司章</td>
                                        <td class="chapterimg"><img src="statics/images/layui-logo.jpg" id="defaultcompanychapter"/></td>
                                        <td><button class="layui-btn layui-btn-normal saveimg" data-id = "defaultcompanychapter">另存章照片</button></td>
                                        <td><button class="layui-btn layui-btn-normal chapterimg" lay-data="{id: 'defaultcompanychapter'}">上传章图片</button></td>
                                        <td><button class="layui-btn layui-btn-normal deleimg" data-id = "defaultcompanychapter">删除章图片</button></td>
                                    </tr>
                                    <tr>
                                        <td>销售合同章</td>
                                        <td class="chapterimg"><img src="statics/images/layui-logo.jpg" id="contract"/></td>
                                        <td><button class="layui-btn layui-btn-normal saveimg" data-id = "contract">另存章照片</button></td>
                                        <td><button class="layui-btn layui-btn-normal chapterimg" lay-data="{id: 'contract'}">上传章图片</button></td>
                                        <td><button class="layui-btn layui-btn-normal deleimg" data-id = "contract">删除章图片</button></td>
                                    </tr>
                                    <tr>
                                        <td>采购合同章</td>
                                        <td class="chapterimg"><img src="statics/images/layui-logo.jpg" id="contractseal"/></td>
                                        <td><button class="layui-btn layui-btn-normal saveimg" data-id = "contractseal">另存章照片</button></td>
                                        <td><button class="layui-btn layui-btn-normal chapterimg" lay-data="{id: 'contractseal'}">上传章图片</button></td>
                                        <td><button class="layui-btn layui-btn-normal deleimg" data-id = "contractseal">删除章图片</button></td>
                                    </tr>
                                    <tr>
                                        <td>单证专用章</td>
                                        <td class="chapterimg"><img src="statics/images/layui-logo.jpg" id="documents"/></td>
                                        <td><button class="layui-btn layui-btn-normal saveimg" data-id = "documents">另存章照片</button></td>
                                        <td><button class="layui-btn layui-btn-normal chapterimg" lay-data="{id: 'documents'}">上传章图片</button></td>
                                        <td><button class="layui-btn layui-btn-normal deleimg" data-id = "documents">删除章图片</button></td>
                                    </tr>
                                    <tr>
                                        <td>财务专用章</td>
                                        <td class="chapterimg"><img src="statics/images/layui-logo.jpg" id="finance"/></td>
                                        <td><button class="layui-btn layui-btn-normal saveimg" data-id = "finance">另存章照片</button></td>
                                        <td><button class="layui-btn layui-btn-normal chapterimg" lay-data="{id: 'finance'}">上传章图片</button></td>
                                        <td><button class="layui-btn layui-btn-normal deleimg" data-id = "finance">删除章图片</button></td>
                                    </tr>
                                </table>
                                <div class="padding text-center">
                                    <input type="hidden" name="companychapter" value="">
                                    <input type="hidden" name="defaultcompanychapter"  value="">
                                    <input type="hidden" name="contract" value="">
                                    <input type="hidden" name="contractseal" value="">
                                    <input type="hidden" name="documents" value="">
                                    <input type="hidden" name="finance" value="">
                                    <input type="hidden" name="financeid" value="">
                                    <input type="hidden" name="documentsid" value="">
                                    <input type="hidden" name="contractsealid" value="">
                                    <input type="hidden" name="contractid" value="">
                                    <input type="hidden" name="defaultcompanychapterid" value="">
                                    <input type="hidden" name="companychapterid" value="">
                                    <button class="layui-btn" id="sealsubmit" lay-submit  lay-filter="sealcomponent-form">提交</button>
                                </div>
                            </div>
                            <div class="layui-tab-item"><table class="layui-table" id="operationlog" lay-filter="logtable"></table></div>
                        </div>

                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<div class="layui-row" id="banktUpdate" style="display:none;">
    <div class="layui-col-md12 banktUpdate-form">
        <form class="layui-form layui-from-pane" action="" style="margin-top:20px" id="banktUpdate-form" lay-filter="banktUpdate-form">
            <div class="layui-form-item">
                <div class="layui-inline">
                    <label class="layui-form-label">银行名称</label>
                    <div class="layui-input-inline">
                        <input type="text" name="bankname" required lay-verify="required" autocomplete="off" class="layui-input">
                    </div>
                </div>
                <div class="layui-inline">
                    <label class="layui-form-label">英文名称</label>
                    <div class="layui-input-inline">
                        <input type="text" name="bankenglishname" required lay-verify="required" autocomplete="off"  class="layui-input">
                    </div>
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-inline">
                    <label class="layui-form-label">地址</label>
                    <div class="layui-input-inline">
                        <input type="text" name="bankaddress" required lay-verify="required" autocomplete="off" class="layui-input">
                    </div>
                </div>
                <div class="layui-inline">
                    <label class="layui-form-label">英文地址</label>
                    <div class="layui-input-inline">
                        <input type="text" name="bankenglishaddress" required lay-verify="required" autocomplete="off"  class="layui-input">
                    </div>
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-inline">
                    <label class="layui-form-label">Swif号</label>
                    <div class="layui-input-inline">
                        <input type="text" name="swiftno" required lay-verify="required" autocomplete="off" class="layui-input">
                    </div>
                </div>
                <div class="layui-inline">
                    <label class="layui-form-label">银行账号</label>
                    <div class="layui-input-inline">
                        <input type="text" name="bankaccount" required lay-verify="required" autocomplete="off"  class="layui-input">
                    </div>
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-inline">
                    <label class="layui-form-label">账号姓名</label>
                    <div class="layui-input-inline">
                        <input type="text" name="bankaccountName" required lay-verify="required" autocomplete="off" class="layui-input">
                    </div>
                </div>
                <div class="layui-inline">
                    <label class="layui-form-label">币种</label>
                    <div class="layui-input-inline">
                        <select name="bizhong" id="bizhong" lay-filter="text8">
                            <option value="1">人民币</option>
                            <option value="2">美元</option>
                            <option value="3">欧元</option>
                        </select>
                    </div>
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-inline">
                    <label class="layui-form-label">银行编码</label>
                    <div class="layui-input-inline">
                        <input type="text" name="bankcode" required lay-verify="required" autocomplete="off" class="layui-input">
                    </div>
                </div>
                <%--<div class="layui-inline">
                    <label class="layui-form-label">币种</label>
                    <div class="layui-input-inline">
                        <select name="bizhong" id="bizhong" lay-filter="text8">
                            <option value=""></option>
                            <option value="text8">text8</option>
                        </select>
                    </div>
                </div>--%>
            </div>
            <div class="layui-form-item">
                <div class="layui-inline">
                    <label class="layui-form-label">业务用</label>
                    <div class="layui-input-block">
                        <input type="checkbox" value="" name="forBusiness" title=" ">
                    </div>
                </div>
                <div class="layui-inline">
                    <label class="layui-form-label">报关用</label>
                    <div class="layui-input-block">
                        <input type="checkbox" value="" name="forCustomsdeclaration" title=" ">
                    </div>
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-inline">
                    <label class="layui-form-label">开票用</label>
                    <div class="layui-input-block">
                        <input type="checkbox" value="" name="forBilling" title=" ">
                    </div>
                </div>
                <div class="layui-inline">
                    <label class="layui-form-label">默认业务</label>
                    <div class="layui-input-block">
                        <input type="checkbox" value="" name="defaultbusinessuse" title=" ">
                    </div>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">是否停用</label>
                <div class="layui-input-block">
                    <input type="checkbox" name="stopuse" title=" ">
                </div>
            </div>


            <div class="layui-form-item" style="margin-top:40px">
                <div class="layui-input-block">
                    <a class="layui-btn  layui-btn-submit " lay-submit="" lay-filter="banktUpdatesubmit" id="banktUpdatesubmit">修改</a>
                    <a class="layui-btn  layui-btn-submit " lay-submit="" lay-filter="banktAddsubmit" id="banktAddsubmit">新增</a>
                    <a type="reset" class="layui-btn layui-btn-primary">重置</a>
                </div>
            </div>
        </form>
    </div>
</div>
<script type="text/html" id="bankeditor">
    <a class="layui-btn layui-btn-xs" lay-event="edit">修改</a>
    <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">删除</a>
</script>
<%@ include file="../../tpl/foot.jsp"%>
<script src="statics/js/SystemCenter/tpl/newupcompanylist.js"></script>